package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.query.StrategyQueryObject;
import cn.wolfcode.trip.base.service.IStrategyCatalogService;
import cn.wolfcode.trip.base.service.IStrategyDetailService;
import cn.wolfcode.trip.base.service.IStrategyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.ServletContext;

@Controller
@RequestMapping("/strategyDetails")
public class StrategyDetailsController {

    @Autowired
    private IStrategyDetailService strategyDetailsService;


    @GetMapping("/{id}")
    @ResponseBody
    public Object getStrategyDetails(@PathVariable Long id){

        return strategyDetailsService.selectByDetailId(id);
    }



}
